<?php

/**
* Role
*/
class Role extends AppModel
{
	var $name = 'Role';
	var $primaryKey = 'project_id';
//	var $associatedKey = 'user_id,project_id';
	
	var $belongsTo = array('Project' =>
                           array('className'  => 'Project',
                                 'conditions' => '',
                                 'order'      => '',
                                 'foreignKey' => 'project_id'
                           ),
						   'User' =>
                           array('className'  => 'User',
                                 'conditions' => '',
                                 'order'      => '',
                                 'foreignKey' => 'user_id'
                           )
                     );

	var $validate = array(
		'company_id' => VALID_NUMBER,
		'user_id' => VALID_NUMBER,
		'status_id' => VALID_NUMBER
	);
}

?>